package com.pingao.mp.modular.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pingao.mp.modular.sys.entity.Role;

import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role>{

    Map<String,Object> getRoleList(Integer pageNumber, Integer pageSize, String searchText, String sortName, String sortOrder,String name,String code);

    void deleteRoleById(Long id);

    Map<String, Object> getMenuList(Long id);

    void savePermissions(Long roleId, List<Long> menuIds);
}
